Integrand size = 18, antiderivative size = 49 \[ \int \frac {A+B x}{\sqrt {x} (a+b x)} \, dx=\frac {2 B \sqrt {x}}{b}+\frac {2 (A b-a B) \arctan \left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a} b^{3/2}} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {81, 65, 211} \[ \int \frac {A+B x}{\sqrt {x} (a+b x)} \, dx=\frac {2 (A b-a B) \arctan \left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a} b^{3/2}}+\frac {2 B \sqrt {x}}{b} \]
[In]
[Out]
Rule 65
Rule 81
Rule 211
Rubi steps \begin{align*} \text {integral}& = \frac {2 B \sqrt {x}}{b}+\frac {\left (2 \left (\frac {A b}{2}-\frac {a B}{2}\right )\right ) \int \frac {1}{\sqrt {x} (a+b x)} \, dx}{b} \\ & = \frac {2 B \sqrt {x}}{b}+\frac {\left (4 \left (\frac {A b}{2}-\frac {a B}{2}\right )\right ) \text {Subst}\left (\int \frac {1}{a+b x^2} \, dx,x,\sqrt {x}\right )}{b} \\ & = \frac {2 B \sqrt {x}}{b}+\frac {2 (A b-a B) \tan ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a} b^{3/2}} \\ \end{align*}
Time = 0.05 (sec) , antiderivative size = 49, normalized size of antiderivative = 1.00 \[ \int \frac {A+B x}{\sqrt {x} (a+b x)} \, dx=\frac {2 B \sqrt {x}}{b}-\frac {2 (-A b+a B) \arctan \left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {a}}\right )}{\sqrt {a} b^{3/2}} \]
[In]
[Out]
Time = 1.07 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.82
method | result | size |
derivativedivides | \(\frac {2 B \sqrt {x}}{b}+\frac {2 \left (A b -B a \right ) \arctan \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{b \sqrt {a b}}\) | \(40\) |
default | \(\frac {2 B \sqrt {x}}{b}+\frac {2 \left (A b -B a \right ) \arctan \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{b \sqrt {a b}}\) | \(40\) |
risch | \(\frac {2 B \sqrt {x}}{b}+\frac {2 \left (A b -B a \right ) \arctan \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{b \sqrt {a b}}\) | \(40\) |
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 102, normalized size of antiderivative = 2.08 \[ \int \frac {A+B x}{\sqrt {x} (a+b x)} \, dx=\left [\frac {2 \, B a b \sqrt {x} + {\left (B a - A b\right )} \sqrt {-a b} \log \left (\frac {b x - a - 2 \, \sqrt {-a b} \sqrt {x}}{b x + a}\right )}{a b^{2}}, \frac {2 \, {\left (B a b \sqrt {x} + {\left (B a - A b\right )} \sqrt {a b} \arctan \left (\frac {\sqrt {a b}}{b \sqrt {x}}\right )\right )}}{a b^{2}}\right ] \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 180 vs. \(2 (46) = 92\).
Time = 0.45 (sec) , antiderivative size = 180, normalized size of antiderivative = 3.67 \[ \int \frac {A+B x}{\sqrt {x} (a+b x)} \, dx=\begin {cases} \tilde {\infty } \left (- \frac {2 A}{\sqrt {x}} + 2 B \sqrt {x}\right ) & \text {for}\: a = 0 \wedge b = 0 \\\frac {2 A \sqrt {x} + \frac {2 B x^{\frac {3}{2}}}{3}}{a} & \text {for}\: b = 0 \\\frac {- \frac {2 A}{\sqrt {x}} + 2 B \sqrt {x}}{b} & \text {for}\: a = 0 \\\frac {A \log {\left (\sqrt {x} - \sqrt {- \frac {a}{b}} \right )}}{b \sqrt {- \frac {a}{b}}} - \frac {A \log {\left (\sqrt {x} + \sqrt {- \frac {a}{b}} \right )}}{b \sqrt {- \frac {a}{b}}} - \frac {B a \log {\left (\sqrt {x} - \sqrt {- \frac {a}{b}} \right )}}{b^{2} \sqrt {- \frac {a}{b}}} + \frac {B a \log {\left (\sqrt {x} + \sqrt {- \frac {a}{b}} \right )}}{b^{2} \sqrt {- \frac {a}{b}}} + \frac {2 B \sqrt {x}}{b} & \text {otherwise} \end {cases} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 39, normalized size of antiderivative = 0.80 \[ \int \frac {A+B x}{\sqrt {x} (a+b x)} \, dx=\frac {2 \, B \sqrt {x}}{b} - \frac {2 \, {\left (B a - A b\right )} \arctan \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{\sqrt {a b} b} \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 39, normalized size of antiderivative = 0.80 \[ \int \frac {A+B x}{\sqrt {x} (a+b x)} \, dx=\frac {2 \, B \sqrt {x}}{b} - \frac {2 \, {\left (B a - A b\right )} \arctan \left (\frac {b \sqrt {x}}{\sqrt {a b}}\right )}{\sqrt {a b} b} \]
[In]
[Out]
Time = 0.38 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.76 \[ \int \frac {A+B x}{\sqrt {x} (a+b x)} \, dx=\frac {2\,B\,\sqrt {x}}{b}+\frac {2\,\mathrm {atan}\left (\frac {\sqrt {b}\,\sqrt {x}}{\sqrt {a}}\right )\,\left (A\,b-B\,a\right )}{\sqrt {a}\,b^{3/2}} \]
[In]
[Out]